<template>
    <el-container>
        <el-aside width="250px">
            <SideMenu></SideMenu>
        </el-aside>
        <el-container>
            <el-header>
                <Strong>ManHub后台管理系统</Strong>

                <div class="header-avatar block">

                    <el-avatar :src="circleUrl"></el-avatar>

                    <el-dropdown>
                      <span class="el-dropdown-link">
                        admin<i class="el-icon-arrow-down el-icon--right"></i>
                      </span>
                        <el-dropdown-menu slot="dropdown">
                            <el-dropdown-item>个人中心</el-dropdown-item>
                            <el-dropdown-item>退出</el-dropdown-item>
                        </el-dropdown-menu>
                    </el-dropdown>

                    <el-link>视频讲解</el-link>
                    <el-link>公众号</el-link>

                </div>
            </el-header>

            <el-main>
                <Tabs></Tabs>
                <router-view></router-view>
            </el-main>
        </el-container>
    </el-container>
</template>

<script>

    import SideMenu from "./inc/SideMenu";
    import Tabs from "./Tabs";

    export default {
        name: 'Home',
        components: {
            SideMenu, Tabs
        },
        data() {
            return {
                circleUrl: "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png"
            }
        }
    }
</script>
<style>

    #app > .el-container {
        padding: 0;
        margin: 0;
        height: 100%;
    }

    .el-header {
        background-color: #B3C0D1;
        color: #333;
        text-align: center;
        line-height: 60px;
    }

    .el-aside {
        background-color: #D3DCE6;
        color: #333;
        /*text-align: center;*/
        line-height: 200px;
    }

    .el-main {
        /*background-color: #E9EEF3;*/
        color: #333;
        text-align: center;
        /*line-height: 160px;*/
        padding: 0 !important;
    }

    .header-avatar {
        float: right;
        line-height: 60px;
        color: #333;

        display: flex;
    }

    .header-avatar .el-link {
        margin-left: 15px;
    }
    .el-avatar {
        margin: 10px;
    }

    .el-dropdown-link {
        cursor: pointer;
        color: #409EFF;
    }
    .el-icon-arrow-down {
        font-size: 14px;
    }
</style>